import { HomeOutlined } from '@ant-design/icons';
import { Link } from 'react-router-dom';
import intl from 'react-intl-universal';


// 将登录用户的信息保存下来—— 'user':{uid:xx, username:xx, roles:{roleName:[xx, xx], roleMenu:[xx, xx]}}
var storage = {
  set(key, value) {
    localStorage.setItem(key, JSON.stringify(value));
  },
  get(key) {
    return JSON.parse(localStorage.getItem(key));
  },
  remove(key) {
    localStorage.removeItem(key);
  },
};

var userMenu = ['主页', '知识库', '文章管理', '用户管理', '角色管理', '分类管理'];

export { storage, userMenu };